package mappers;

import java.util.List;

import models.Journey;
import models.Point;

import org.apache.ibatis.annotations.Param;

public interface JourneyMapper {
    public List<Journey> getJourneysDescByUsername(@Param("username")String username);
    public List<Journey> getJourneysDescByUserId(@Param("user_id")int user_id);
    public List<Point> getPointsByJourney(@Param("journey_id")int journey_id);
	public void insertJourney(@Param("point")Point point);
	public void updateName(@Param("journey")Journey journey);
	public void deleteJourney(@Param("journey")Journey journey);
	public List<Journey> getShareJourneysDescByUserId(@Param("journey_id") int journey_id);
}
